package com.test.zk;


import lombok.extern.slf4j.Slf4j;
import org.apache.zookeeper.AsyncCallback;
import org.apache.zookeeper.data.Stat;

/**
 * Created by xingfeng on 19-3-7.
 */
@Slf4j
public class DataCallback implements AsyncCallback.DataCallback {

    public void processResult(int rc, String path, Object ctx,  byte[] data,Stat stat ) {
        log.warn("异步获取节点："+path+",数据："+new String(data)+","+(String)ctx+",版本："+stat.getVersion());
    }
}
